Improve Log Attributes API#4416
Merged
adinauer merged 3 commits intofeat/logs-attributes-in-apifrom May 22, 2025
Merged
Conversation
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Improve Log Attributes API ([#4416](https://github.com/getsentry/sentry-java/pull/4416))If none of the above apply, you can opt out of this check by adding |
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 93da41e | 429.70 ms | 484.57 ms | 54.87 ms |
| 878e381 | 402.20 ms | 417.65 ms | 15.45 ms |
| 4c45928 | 454.84 ms | 508.46 ms | 53.62 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 93da41e | 1.58 MiB | 2.08 MiB | 510.52 KiB |
| 878e381 | 1.58 MiB | 2.08 MiB | 510.51 KiB |
| 4c45928 | 1.58 MiB | 2.08 MiB | 510.86 KiB |
lcian
reviewed
May 19, 2025
adinauer
commented
May 20, 2025
lcian
reviewed
May 22, 2025
Member
Author
|
Merging this into #4402 to finish up there. |
adinauer
added a commit
that referenced
this pull request
May 22, 2025
* Extend Logs API to allow passing in attributes * update (#4409) * Improve Log Attributes API (#4416) * Improve logger attributes API * Review feedback * changelog --------- Co-authored-by: Lorenzo Cian <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Improve Log Attributes API:
Sentry.logger().log()overload that takes aLogParamsparam objectSentryAttributesandSentryAttributeSentryAttributeTypeenum💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps